#!/bin/bash

yum install git -y
if command -v git &> /dev/null; then
	[ ! -d "/tmp/useful-scripts-$USER" ] &&
	git clone https://gitee.com/ringsass/useful-scripts "/tmp/useful-scripts-$USER"
fi

export PATH="$PATH:/tmp/useful-scripts-$USER/bin:/tmp/useful-scripts-$USER/legacy-bin"
